

#ifndef MEMORY_H
#define MEMORY_H


#define SIZE_MEMORY 100


typedef struct struct_memory
{
	int size;
	int word[SIZE_MEMORY];// ou int position[SIZE_MEMORY]; ai na main, quando criarmos a memoria, passamos o paramentro SIZE_MEMORY
} Memory;

Memory *memory_create(int size);
int read_mem(int add, Memory *memory);
int write_mem (int add, int data, Memory *memory);

#endif
